import store from './sessionStore'
const key = 'token'

export const setToken = token => store.set(key, token)

export const getToken = () => store.get(key)

export const hasToken = () => store.get(key) === '' ? false : true

export const delToken = () => store.del(key)
